import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 查询群众帮扶
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/mass-help/queryByCondition',
    method: 'get',
    params: data
  })
}

// id查询群众帮扶详情
export function queryById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-help/queryById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 删除群众帮扶
export function deleteById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-help/deleteById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 删除群众帮扶
export function add (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-help/add`,
    method: 'post',
    data
  })
}

// 删除群众帮扶
export function edit (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/mass-help/edit`,
    method: 'post',
    data
  })
}

// 查询党员列表
export function queryPersonList (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/party-member-info-mgmt/queryList`,
    method: 'get',
    params: data
  })
}
